package cn.com.headfree.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gta.edu.sdk.base.service.impl.BaseServiceImpl;
import com.gta.edu.sdk.common.dto.Page;
import com.gta.edu.sdk.common.dto.Sort;

import cn.com.headfree.dao.ITaskDao;
import cn.com.headfree.entity.TCommonTask;
import cn.com.headfree.entity.TCommonTaskExecuteRecord;
import cn.com.headfree.service.ITaskService;

@Service("taskService")
public class TaskServiceImpl extends BaseServiceImpl<TCommonTask> implements ITaskService {

	@Autowired
	private ITaskDao taskDao;
	
	@Override
	public void find(Page<TCommonTask> page, Sort sort, TCommonTask task) {
		this.taskDao.find(page, sort, task);
	}

	@Override
	public void deleteTask(String deleteIds) {
		this.taskDao.deleteTask(deleteIds);
	}

	@Override
	public void writeRecord(List<TCommonTaskExecuteRecord> recordList) throws Exception {
		this.taskDao.writeRecord(recordList);
	}

	@Override
	public void find(Page<TCommonTaskExecuteRecord> page, Sort sort, TCommonTaskExecuteRecord record, Date startDate, Date endDate) {
		this.taskDao.find(page, sort, record, startDate, endDate);
	}

}
